package org.jgs1904.mybatis.mapper;

import org.jgs1904.mybatis.entity.Blog;

import java.util.List;
import java.util.Map;

/**
 * @author: 默苍璃
 * @date: 2022-01-06 17:43
 */
public interface BlogMapper {

    /**
     * 插入一条数据
     *
     * @param blog
     * @return
     */
    int addBlog(Blog blog);


    /**
     * 动态查询
     *
     * @param map
     * @return
     */
    List<Blog> selectBlog(Map<String, Object> map);


    /**
     * 动态设值
     *
     * @param map
     * @return
     */
    int setBlog(Map<String, Object> map);


}
